package com.dd.cloud.user.service.classroom.impl;

import com.dd.cloud.user.req.classroom.UploadMediaContentReq;
import com.dd.cloud.user.service.classroom.IMediaContentService;
import com.dd.cloud.common.vo.LoginInfo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

/**
 * @Description: 线程池
 * @ClassName: MediaTheadPoolService
 * @Author: czg
 * @Date: 2022/10/9 16:08
 * @Version: 1.0
 */
@Service
@EnableAsync
@Slf4j
public class MediaTheadPoolService {
    @Autowired
    private IMediaContentService mediaContentService;

    /**
     * 线程池上传视频
     * @throws InterruptedException
     */
    @Async("taskExecutor")
    public void uploadMedia(UploadMediaContentReq req, LoginInfo loginInfo) throws InterruptedException {
        log.info("多线程上传视频");
        //mediaContentService.uploadMedia(req, loginInfo);
    }
}
